package com.earl.eatbao.dao.eatbao;

import java.util.List;

import com.earl.eatbao.commons.dao.BaseRepsitoty;
import com.earl.eatbao.domain.eatbao.Comment;

public interface CommentDao extends BaseRepsitoty<Comment,Long> {

	Comment findOneByOrderId(Long orderId);

    /**
     * 查询商家所有评论
     * @param businessId
     */
    List<Comment> findByBusinessId(Long businessId);

    /**
     * 根据用户Id查询用户的所有评论
     * @param userId
     * @return
     */
    List<Comment> findByUserId(Long userId);
}
